﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace PokerService
{
    [ServiceContract(Namespace = "PokerService", CallbackContract = typeof(IGameCallBack))]
    public interface IGame
    {
        [OperationContract(IsOneWay = true)]
        void TakeSeat(int tableId, int moneyOnTable, string username, int seatNr);

        [OperationContract]
        List<Player> GetListOfPlayers(int tableId);

        [OperationContract(IsOneWay = true)]
        void check(int tabelId, string username);

        [OperationContract(IsOneWay = true)]
        void call(int tabelId, string username);

        [OperationContract(IsOneWay = true)]
        void fold(int tabelId, string username);

        [OperationContract(IsOneWay = true)]
        void raise(int tabelId, string username, int amount);
    }


}
